package com.zyt.service.impl;

import com.zyt.entity.Category;
import com.zyt.mapper.CategoryMapper;
import com.zyt.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CategoryServiceImpl implements CategoryService {
    @Autowired
    private CategoryMapper categoryMapper;
    @Override
    public List<Category> selectAllCategory() {
        return categoryMapper.selectAllCategory();
    }

    @Override
    public List<Category> selectByLevelTwo(Integer id) {
        return categoryMapper.selectByLevelTwo(id);
    }

    @Override
    public List<Category> selectByLevelOne(Integer id) {
        return categoryMapper.selectByLevelOne(id);
    }
}
